//
//  MockAutocompleteSuggestionProvider.swift
//  KeyboardKit
//
//  Created by Daniel Saidi on 2021-03-17.
//  Copyright © 2021 Daniel Saidi. All rights reserved.
//

import Foundation
import KeyboardKit

class MockAutocompleteSuggestionProvider: AutocompleteSuggestionProvider {
    
    var locale: Locale = .current
    
    var autocompleteSuggestionsResult = AutocompleteResult.success([])
    
    func autocompleteSuggestions(for text: String, completion: (AutocompleteResult) -> Void) {
        completion(autocompleteSuggestionsResult)
    }
    
    var canIgnoreWords: Bool = false
    
    var ignoredWords: [String] = []
    
    func hasIgnoredWord(_ word: String) -> Bool { false }
    
    func ignoreWord(_ word: String) {}
    
    func removeIgnoredWord(_ word: String) {}
    
    var canLearnWords: Bool = false
    
    func hasLearnedWord(_ word: String) -> Bool { false }
    
    func learnWord(_ word: String) {}
    
    func unlearnWord(_ word: String) {}
}
